package com.taoym.voucher.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taoym.voucher.admin.domain.XcxUserWithdraw;
import com.taoym.voucher.admin.entity.vo.XcxGetUserWithdrawVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @coder taoym
 * @datetime 2021/7/16 23:19
 * @desc
 */
public interface XcxUserWithdrawMapper extends BaseMapper<XcxUserWithdraw> {
    /**
     * @coder taoym
     * @datetime 2021/7/16 23:31
     * @desc 查询用户提现信息
     */
    List<XcxGetUserWithdrawVO.GetUserWithdraw> getUserWithdraw(@Param("uid") String uid,
                                                               @Param("status") Integer status,
                                                               @Param("page") Integer page,
                                                               @Param("size") Integer size);

    /**
     * @coder taoym
     * @datetime 2021/7/17 12:18
     * @desc 查询记录数
     */
    Integer getCount(@Param("uid") String uid,
                     @Param("status") Integer status);
}
